mylib=libcal.a
CC=gcc

$(mylib):add.o sub.o
	ar -rc -o $(mylib) $^
%.o:%.c
	$(CC) -c $<

.PHONY:clean
clean:
	rm -f $(mylib) ./*.o

.PHONY:output
output:
	mkdir -p mathlib/include
	mkdir -p mathlib/lib	
	cp ./*.h mathlib/include
	cp ./*.a mathlib/lib	
	
